{extend name="admin@index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-block">
            <input type="text" name="row[username]" autocomplete="off" placeholder="用户名" class="layui-input" value="{$data.username}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系人</label>
        <div class="layui-input-block">
            <input type="text" name="row[name]" autocomplete="off" placeholder="联系人" class="layui-input" value="{$data.name}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" name="row[phone]"  autocomplete="off" placeholder="联系电话" class="layui-input" value="{$data.phone}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">商家水站名称</label>
        <div class="layui-input-block">
            <input type="text" name="row[business_name]" autocomplete="off" placeholder="用户名" class="layui-input" value="{$data.business_name}" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-block">
            <input type="text" name="row[address]"  autocomplete="off" placeholder="用户名" class="layui-input" value="{$data.address}" readonly="readonly">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block">
            <input type="radio" name="row[status]" value="0" title="待审核" {if $data.status==0}checked{/if}>
            <input type="radio" name="row[status]" value="1" title="审核通过" {if $data.status==1}checked{/if}>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属管理员</label>
        <div class="layui-input-block">
            <select name="row[belong_admin_id]" lay-verify="required" lay-search="">
                <option value="">请选择管理员</option>
                {if !empty($admin_list)}
                {foreach name="admin_list" item="vo"}
                <option value="{$vo.id}" <?php if( $vo['id'] == $data['belong_admin_id']){ ?> selected <?php }?>>{$vo.username}</option>
                {/foreach}
                {/if}
            </select>
        </div>
    </div>

    <input type="hidden" name="row[id]" value="{$data.id}">
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit>提交审核状态</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use(['yznForm','laydate'], function() {
    var yznForm = layui.yznForm,
        laydate = layui.laydate;
    yznForm.bindevent($("form.layui-form"));
    laydate.render({
        elem: '#ID-laydate'
    });
});
</script>
{/block}